import instance from './request'
// 请求数据
export let getList = async () => {
    let res = await instance.get('/list')
    return res.data
}
// 更改
export const updateList = async (id:any,data:any) => {
    let res =await instance.put(`/list/${id}`,data)
    return res.data
}
// 删除接口
export const delData = async (id:any) => {
    let res =await instance.delete(`/list/${id}`)
    return res.data
}